package com.zhdl.modules.prefiresys.service;

import com.project.common.service.BaseService;
import com.zhdl.modules.prefiresys.entity.FactoryLocalHost;
import com.zhdl.modules.prefiresys.web.response.AllHostListResp;

import java.util.List;

/**
 * 探测器装置 本地主机
 *
 * @author ACodeYuan
 * @Description:
 * @date 2023/7/22 12:13
 * @Version Y-1.0
 */
public interface FactoryLocalHostService extends BaseService<FactoryLocalHost, String> {

    /**
     * 新增本地接口
     *
     * @param factoryLocalHost
     * @return
     */
    FactoryLocalHost insertHost(FactoryLocalHost factoryLocalHost);

    /**
     * 修改本地接口
     *
     * @param factoryLocalHost
     * @return
     */
    FactoryLocalHost updateHost(FactoryLocalHost factoryLocalHost);

    List<FactoryLocalHost> getAllTotalHost();

    /**
     * 获取装置列表，带设置信息列表
     *
     * @return
     */
    List<AllHostListResp> getAllHostlist();

    /**
     * 找最近一个月信息
     *
     * @return
     */
    FactoryLocalHost findRecently();

    Integer findAllAlarm();

    /**
     * 消音器状态更新
     *
     * @param soundEnable
     */
    void updateSound(boolean soundEnable);

}
